import request from "@/utils/requset";

const searchSuggestion = (q) => {
  return request({
    url: `/v1_0/suggestion`,
    method: "GET",
    params: {
      //请求方式是Query
      q,
    },
  });
};

const searchRequset = ({ page = 1, per_page = 10, q }) => {
  return request({
    url: "/v1_0/search",
    method: "get",
    params: {
      page,
      per_page,
      q,
    },
  });
};
export { searchSuggestion, searchRequset };
